package com.xuqi.Gesture;

import android.util.Log;
import android.view.MotionEvent;

public class ScreenAction {
	protected void checkDir(float distanceX, float distanceY)
	{
		if(Math.abs(distanceX) > Math.abs(distanceY))
		{
			if(distanceX > 0)
			{
				System.out.println("right");
			}
			else
			{
				System.out.println("left");
			}
		}
		else
		{
			if(distanceY > 0)
			{
				System.out.println("down");
			}
			else
			{
				System.out.println("up");
			}
		}
	}
}
